<template>
  <div class="div-1">
    <div class="div-2">
      <span class="p-1">我的订单</span>
      <span class="p-2">
        全部订单
        <img src="../../assets/jinru.png" alt="" />
      </span>
    </div>
    <div class="div-3">
      <div class="nav" v-for="(item, index) in nav" :key="index">
        <img :src="item.URL" alt="" />
        <p class="p-1">{{ item.pin }}</p>
        <p class="p-2">
          {{ item.shu }}
        </p>
      </div>
    </div>
  </div>
</template>

<script>
import ptz from '../../assets/ptz.png'
import dfh from '../../assets/dfh.png'
import dsh from '../../assets/dsh.png'
import ywc from '../../assets/ywc.png'
export default {
  data() {
    return {
      nav: [
        {
          URL: ptz,
          pin: "拼团中",
          shu: "2",
        },
        {
          URL: dfh,
          pin: "待发货",
          shu: "5",
        },
        {
          URL: dsh,
          pin: "待收货",
          shu: "3",
        },
        {
          URL: ywc,
          pin: "已完成",
          shu: "9",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.div-1 {
  background-color: #ffffff;
  margin: 0 0.7rem 0.7rem 0.7rem;
  border-radius: 0.7rem;
  .div-2 {
    height: 1.5rem;
    line-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .p-1 {
      font-size: 0.9rem;
      font-weight: 600;
    }
    .p-2 {
      color: #9c9c9c;
      font-size: 0.8rem;
      img {
        height: 0.7rem;
        margin-bottom: 0.2rem;
        vertical-align: middle;
      }
    }
  }
  .div-3 {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.3rem 0 0.3rem;
    .nav {
      width: 3rem;
      position: relative;
      padding: 0.1rem;
      img {
        width: 2rem;
      }
      .p-1 {
          font-weight: 600;
        font-size: 0.8rem;
      }
      .p-2 {
        font-size: 0.7rem;
        text-align: center;
        border-radius: 1rem;
        border: 2px solid #ffffff;
        color: #fef8f8;
        width: 0.8rem;
        background-color: #ee4034;
        position: absolute;
        top: 0;
        right: 0;
      }
    }
  }
}
</style>